#include <func.h>
int count = 0;
void sigFunc(int signum)
{
    signal(SIGINT,SIG_IGN);
    count++;
    printf("已经设置了相同信号忽略，下面睡两秒，摁摁试试\n");
    if(count == 2)   
    printf("you cant see me\n");
    sleep(2);
    signal(SIGINT,sigFunc);
    printf("已经恢复信号响应\n");
    count = 0;
}
int main(int argc,char **argv)
{
    signal(SIGINT,sigFunc);
    while(1);
    return 0;
}

